from langchain_core.tools import tool

@tool
def custom_multiplier(a: int, b: int) -> int:
    """一个简单的工具，用于计算两个整数的乘积。"""
    return a * b

print(custom_multiplier.name)
print(custom_multiplier.description)
print(custom_multiplier.args)
result = custom_multiplier.invoke({"a": 5, "b": 4})
print(result)